Write-Host "pls type in data, type 'Q' to stop"
$list = @()
$currentinput=Read-Host

while ($currentinput -ne 'q') {
    $list += $currentinput
    $currentinput=Read-Host
    
}

foreach ($item in $list) {
    $currentOut= "the current output is :" +$item
    Write-Host $currentOut
}